
<!--_meta 作为公共模版分离出去-->
{include file="public/_meta"}

<nav class="breadcrumb">
    <a href="javascript:void(0)">首页</a>
        <span class="c-gray en">&gt;</span>
        <a href="javascript:void(0)">会员管理</a>
        <span class="c-gray en">&gt;</span>
        <a href="javascript:void(0)">会员地址列表</a>

        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:window.location.reload();" title="刷新">
            <i class="Hui-iconfont">刷新</i>
        </a>
    </nav>
    <div class="Hui-article">
        <div class="cl pd-20">
            <div class="text-c" style="margin-bottom: 10px;">
                <form action="" method="get" class="form form-horizontal" id="form-article-add" enctype="multipart/form-data">
                    <input type="text" class="input-text" style="width:250px" placeholder="请输入用户名、姓名、手机号" name="keywords">
                    <button type="submit" class="btn btn-success"  name="">搜索用户</button>
                </form>
            </div>
            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="r">共有数据：<strong>{$count}</strong> 条</span>
            </div>
            <div class="cl pd-20">
            <table class="table table-border table-bordered table-bg table-sort ">
                <thead>
                <tr>
                    <th scope="col" colspan="14">会员地址列表</th>
                </tr>
                <tr class="text-c">
                    <th><input type="checkbox" name="" value=""></th>
                    <th>ID</th>
                    <th width="150px">姓名</th>
                    <th>地址区域</th>
                    <th>地址详情</th>
                    <th>注册时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="address" id="vo"}
                    <tr class="text-c">
                        <td><input type="checkbox" value="1" name=""></td>
                        <td>{$vo.id}</td>
                        <td><a href="javascript:void(0);"  onclick="see_details('查看会员详情信息','{:url(\'admin/member/member_show\')}?id={$vo.member_id}','500','410');"> <u><b>{$vo.full_name}</b></u></a></td>
                        <td>{if condition="$vo.location eq null"}<b style="color:red">暂无</b>{else/}{$vo.location}{/if}</td>
                        <td>{if condition="$vo.address eq null"}<b style="color:red">暂无</b>{else/}{$vo.address}{/if}</td>
                        <td>{$vo.ctime|date="Y-m-d H:i:s",###}</td>
                        <td class="td-manage">
                            <a title="编辑" href="javascript:void(0);" onclick="edit_member_address('编辑会员地址信息','{:url(\'address/edit_member_address\')}?id={$vo.id}','800','400')" style="text-decoration:none"><i class="Hui-iconfont Hui-iconfont-edit2" title="编辑"></i></a>
                        </td>
                    </tr>
                {/volist}
                </tbody>
            </table>
          </div>
        </div>
    </div>

<!--_footer 作为公共模版分离出去-->
{include file="public/_footer"}

<script>
    $(".table-sort").dataTable({
        "aaSorting": [[ 1, "asc" ]],//默认第几个排序
        "bStateSave": true,//状态保存
        "aoColumnDefs": [
            //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
            {"orderable":false,"aTargets":[0,2,3,4,5,6]}// 制定列不参与排序
        ]
    });

    /*编辑地址信息*/
    function edit_member_address(title,url,w,h){
        layer_show(title,url,w,h);
    }
    /*查看地址详情*/
    function see_details(title,url,w,h){
        layer_show(title,url,w,h);
    }
    /*查看详情消息弹框*/
    function layer_msg_over(obj){
        layer.msg('要点击我吗',{icon:3,time:1000});
        /*
         icon:{
         1: 沟
         2: 叉
         3:问号
         4:锁
         5:哭
         6:笑
         7:感叹号

         }
         * */
    }
</script>


